package jkoa.middleware;

import jkoa.core.Context;
import jkoa.core.Log;
import jkoa.core.Middleware;
import jkoa.core.Next;
import jkoa.core.Request;
import jkoa.core.Response;

public class LoggingMiddleware implements Middleware {
    @Override
    public void handle(Context ctx, Next next) {
    	Log.info("Request received.");
        next.execute(ctx);
        Log.info("Response sent.");
    }
}